home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr10 / e4v160.zip / E4KEYS < prev    next >
Text File  |  1993-06-04  |  5KB  |  142 lines

  1. ;****************************************************************
  2. ; This is an example key file for E4
  3. ; (C) Copyright 1993 N.Faulks. All Rights Reserved.
  4. ;****************************************************************
  5. ; THIS FILE IS OPTIONAL - IT IS NOT REQUIRED TO USE E4
  6. ;****************************************************************
  7.  
  8. ; This file is read during start-up by E4. It allows you to change
  9. ; the keyboard layout, by making a given key act like one or more
  10. ; other keys. You only need key assignments for those keys that 
  11. ; you wish to change.
  12.  
  13. ; A key assignment contains the key name in the first column, followed by
  14. ; a TAB and then a list of the key strokes to be assigned to the key.
  15.  
  16. ; Comments must start with a semicolon in the first column.
  17.  
  18. ; To find out the name of a key use the Tools Keycodes command
  19.  
  20. ;************************
  21. ; Function key shortcuts
  22. ;************************
  23.  
  24. ; These allow quick shortcuts for useful key sequences. These are my
  25. ; personal favourites, so feel free to change them
  26.  
  27. ; F2 gives a buffer list
  28.  
  29. f2    @B @L
  30.  
  31. ; F11 goes to the point where you last changed something. Press 
  32. ; repeatedly to view the last few edits (for the current edit 
  33. ; session only).
  34.  
  35. f11    @G @E
  36.  
  37. ; F12 switches to the previous buffer
  38.  
  39. f12    @G @P
  40.  
  41. ; strings may be assigned to a key but they must NOT START with a space
  42.  
  43. f10    "E4 Editor "
  44.  
  45. ; It is possible to redefine keys so as to provide your own 
  46. ; defaults for certain commands  Here I am redefining the Dos 
  47. ; command so that the Allsave option is always set
  48. ; (If you want this then remove the semicolon and the space 
  49. ; following it)
  50.  
  51. ; @d    @d @plus @a
  52.  
  53. ;************************
  54. ; Specials for the GRiD
  55. ;************************
  56.  
  57. ; My Grid portable doesn't have a numeric key pad so I reassign
  58. ; Alt-PageDown to have the same effect as Grey Plus
  59.  
  60. @pgdn    #plus
  61. @pgup    #minus
  62.  
  63. ;************************
  64. ; Non-enhanced keyboards
  65. ;************************
  66.  
  67. ; Standard PC keyboards (No F11 & F12) cannot generate some keys 
  68.  
  69. ; Here I make ^del (delete to end of line) into ALT-K for Kill
  70.  
  71. @K    ^del
  72.  
  73. ; Make ALT-E act as the Explode key (ALT-;)
  74.  
  75. @E    @semi
  76.  
  77. ;************************
  78. ; For Programmers
  79. ;************************
  80.  
  81. ; These Assigments allow easy compilation and testing of programs from 
  82. ; within the editor. These examples apply to C programs, but can of course 
  83. ; be modified for other languages. The registered version of the editor 
  84. ; comes with a library of macros which apply to other languages and also 
  85. ; allow you to track error messages (putting the cursor over the offending 
  86. ; line in your program)
  87.  
  88. ; Use ALT-Z (Zip command) to view the output of compiler or your program.
  89.  
  90. ; COMPILE the current buffer using the BCC compiler (with the -v option to 
  91. ; allow source level debugging). You can edit the quoted string to change 
  92. ; the compiler or options to suit yourself.
  93.  
  94. ; ^HOME is used to reset all the current options (for the Dos command). 
  95. ; @A then turns on Autosave, and @U turns on Unloadall. These make sure 
  96. ; that all your files are saved, and then unloaded from memory to make room 
  97. ; for the compiler. F4 is replaced by the full pathname of the file. ESC 
  98. ; is used to return from the DOS screen. Use ALT-Z to view errors, etc.
  99.  
  100. ^C    @D ^HOME @A @U "BCC -v " F4 RET ESC
  101.  
  102. ; EXECUTE the .EXE file produced by compiling the current buffer
  103.  
  104. ^X    @D @F4 RET ESC
  105.  
  106. ; DEBUG using the Turbo Debugger on the file
  107.  
  108. ^D    @D "TD " @F4 RET ESC
  109.  
  110. ; The following macros assume that you are using the editor's project 
  111. ; file facility. This allows the name to the current project (the name of 
  112. ; the file you are trying to build) to be passed to the MAKE program, the 
  113. ; debugger, or run directly.
  114.  
  115. ; Compile using the project file name as a target to make
  116.  
  117. ^m    @d ^home @a @u "make " f9 RET ESC
  118.  
  119. ; Run the project
  120.  
  121. ^r    @d ^home @a @u f9 RET ESC
  122.  
  123. ; Test using the Turbo Debugger
  124.  
  125. ^t    @d ^home @a @u "td " f9 RET ESC
  126.  
  127. ; Comment out a C program line (this is best as a macro so that you can
  128. ; have different comment styles for different languages). The ^U macro 
  129. ; un-comments a line commented by ^K.
  130.  
  131. ^k    home "/*" spc end spc "*/" down home
  132. ^u    home del del del end bksp bksp bksp down home
  133.  
  134. ; This macro adds the current line to a list of function protoypes kept 
  135. ; at the start of the file. The supplied TEMPLATE.C file includes the 
  136. ; C comments necessary to make this work. To use this macro place the 
  137. ; cursor over a function header and press ^P.
  138.  
  139. ^p    esc @c esc @f ^home @g @c "end of proto" ret
  140.     up home @v end semi @g @f
  141.  
  142.